#include <iostream>
#include <thread>//语言封装的多线程

void threadRun(std::string name, int num)
{
    std::cout << "I am new thread " << name << std::endl;
}

int main()
{
    std::thread mythread(threadRun, "thread-1", 10);//回调threadRun
    mythread.join();
    
    return 0;
}

